package cn.yangliu.init.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import cn.yangliu.init.InitAnalysisEventListener;
import cn.yangliu.init.InitHandler;
import com.alibaba.excel.event.AnalysisEventListener;

/**
 * The type of package-scan.
 *
 * <p>
 * .
 *
 * @author 问道于盲
 * @date 2020 -04-16
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface InitJob {

    /**
     * 排序号
     *
     * Order int.
     *
     * @return the int
     */
    int order() default Integer.MAX_VALUE;

    /**
     * excel读取的处理监听器
     *
     * Listener class.
     *
     * @return the class
     */
    Class<? extends AnalysisEventListener> listener() default InitAnalysisEventListener.class;

    /**
     * 要读取的sheet名称
     *
     * Sheet string.
     *
     * @return the string
     */
    String sheet();

    /**
     * InitHandler class.
     *
     * @return the class
     */
    Class<? extends InitHandler> handler();



}
